package com.wenwan.manage.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

/***
 * 反馈
 * 
 * @author Admin
 *
 */
public class FeedBack implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6988832720757422198L;

	/**
	 * 反馈id
	 */
	private String id;
	/**
	 * 创建 时间
	 */
	@JsonIgnore
	private String createTime;
	/**
	 * 更新时间
	 */
	@JsonIgnore
	private String updateTime;

	/**
	 * 联系电话
	 */
	private String phone;

	/**
	 * 举报的内容
	 */
	private String content;
	/**
	 * 举报的图片，json格式的集合
	 */
	@JsonIgnore
	private String imagesJson;

	/**
	 * 举报的图片集合
	 */
	private List<String> images = new ArrayList<String>();

	public FeedBack() {
		// TODO Auto-generated constructor stub
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getImagesJson() {
		return imagesJson;
	}

	public void setImagesJson(String imagesJson) {
		this.imagesJson = imagesJson;
	}

	public List<String> getImages() {
		if (imagesJson != null) {
			images = new Gson().fromJson(imagesJson, new TypeToken<List<String>>() {
			}.getType());
		} else {
			images = new ArrayList<String>();
		}
		return images;
	}

	public void setImages(List<String> images) {
		this.images = images;
	}

}
